<?php

namespace app\index\exception;

use think\exception\HttpResponseException;

class LogicException extends HttpResponseException
{

    public function __construct($info, $data = [])
    {
        $code = 0;
        $this->response = json(compact('code', 'info', 'data'));
    }
}